home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Canadian & World Encyclopedia 1998
/
The Canadian & World Encyclopedia 1998 - Disc 2.iso
/
mac
/
prime_CD
/
pb
/
PREVIEW.DIR
/
00136_Script_rect capture
< prev
next >
Wrap
Text File
|
1997-07-22
|
2KB
|
59 lines
global gMarkerRectList, gMarkerRectListCount
--
--on keyUp
-- if voidP(gMarkerRectList) then set gMarkerRectList = [:]
-- case the key of
--
-- "u":
-- set theRect = rect(the mouseH, the mouseV, 0, 0)
-- setAprop gMarkerRectList, the framelabel, theRect
--
-- "l":
-- set currRec = getAprop(gMarkerRectList, the frameLabel)
-- set theRect = rect(0, 0, the mouseH, the mouseV)
-- setAprop gMarkerRectList, the framelabel, currRec + theRect
--
-- otherwise: nothing
-- end case
--end
on stopMovie
global gQTchan
put gMarkerRectList into field "gMarkerRectList_session"
if the type of the member of sprite gQTchan = #digitalVideo then
set the movierate of sprite gQTchan to 0
set the movietime of sprite gQTchan to 0
set the visible of sprite gQTchan to 0
set the visible of sprite gQTchan to 1
end if
end
on startMovie
initglobals
set gMarkerRectList = [#r_macdonald: rect(213, 49, 339, 390), #r_spotlight: rect(511, 110, 641, 480), #r_loveSong: rect(355, 258, 490, 349), #r_pierre: rect(3, 108, 169, 421), #r_minors: rect(356, 31, 496, 234)]
set gMarkerRectListCount = count(gMarkerRectList)
-- instance video control class into objects
global gQAvideoManager, gPEvideoManager, gHMvideoManager
set gQAvideoManager = new (script "video manager", field "clipList_QA") -- questions & answers
set gPEvideoManager = new (script "video manager", field "clipList_PE") -- public eye
set gHMvideoManager = new (script "video manager", field "clipList_HM") -- honourable mention
set the idleloadmode = TRUE
-- cursor stack object
global gCursorStack
set gCursorStack = new(script "cursor stack parent")
-- active area cursors
repeat with c in [2,3,4,5,9,10,24,48]
set the cursor of sprite c to [the number of member "hand", the number of member "hand mask"]
end repeat
global gTheSoundLevel
if the soundlevel = 0 then
set gTheSoundLevel = 4
-- set the soundlevel = gTheSoundLevel
end if
end